package com.jweb.orm.entities.user;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Paul Kevin
 * Account table
 *
 */

@Entity
@Table(name = Profile.TABLE_NAME)

public class Profile {
	
	public static final String TABLE_NAME="Profile";
	
	@Id
	@Column(name="userId",
            nullable=false)
	private String userId;
	
	@Column(name="userdir",
            nullable=false, 
            unique=true)
	private String userdir;
	
	@Column(name="favorites",
            nullable=true)
	private String favorites;

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * @return the userdir
	 */
	public String getUserdir() {
		return userdir;
	}

	/**
	 * @param userdir the userdir to set
	 */
	public void setUserdir(String userdir) {
		this.userdir = userdir;
	}


	/**
	 * @return the favorites
	 */
	public String getFavorites() {
		return favorites;
	}

	/**
	 * @param favorites the favorites to set
	 */
	public void setFavorites(String favorites) {
		this.favorites = favorites;
	}
	
	

}
